<%@ taglib uri="/common/tld/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/common/tld/struts-logic.tld" prefix="logic" %>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <link rel="stylesheet" type="text/css" href="/TallerMecanico/common/css/estilo.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>USM CAR</title>

<script>
	function doLogin() {
		var obj = document.loginForm;
		if(obj.rut.value == "" || obj.password.value == "") {
			alert("Debe ingresar un rut clave");
			return;
		}
		obj.submit();
	}
	
</script>

</head>
<body>
	<script>if (<%=request.getAttribute("flag")%> == 1) alert("Usuario o password incorrectas. Intente nuevamente.");</script>
	<form name="loginForm" id="loginForm" action="/TallerMecanico/login/login.do?metodo=despliegaMenu" method="post" >
		<table width="800" border="0" cellspacing="0" cellpadding="0">
			<tr> 
				<td>
					<table width="100%" height="83" border="0" cellpadding="0" cellspacing="0" class="header">
					    <tr> 
					      <td width="78%"><img src="/TallerMecanico/common/images/header.jpg" width="700" height="83"></td>
					      <td width="22%"></td>
					    </tr>
				  </table>
				</td>
			</tr>
			<tr> 
				<td background="/TallerMecanico/common/images/header_bkg.jpg"><img src="/TallerMecanico/common/images/header_bkg.jpg" width="9" height="22"></td>
		  	</tr>
			<tr> 
				<td align="center" valign="top"> 
					<p>
						<br>
					</p>
					<table width="99%" border="0" cellpadding="0" cellspacing="0" class="tabladerecha">
						<tr> 
					  		<td width="100%" height="31" background="/TallerMecanico/common/images/bkg_titulo.gif" class="titulo"><font color="#000000">Login</font></td>
						</tr>
						<tr> 
						 	<td align="left" class="fondtbla">&nbsp;</td>
						</tr>
						<tr class="fondtbla"> 
							<td height="45" align="center" valign="middle" class="subtitulos">
								<table width="300" border="0" cellspacing="0" cellpadding="0">
							      	<tr> 
							        	<td class="ultimotabla">&nbsp;</td>
							      	</tr>
							      	<tr> 
							        	<td height="20" class="ultimotabla">Rut</td>
							      	</tr>
							      	<tr> 
							        	<td class="ultimotabla">
							        		<input type="text" name="rut"> (Ej: 10280646-8)
							        	</td>
							      	</tr>
							      	<tr> 
							        	<td height="20" class="ultimotabla">Clave</td>
							      	</tr>
							      	<tr> 
							       		<td class="ultimotabla">
							       			<input type="password" name="password">
						          			<input type="button" onClick="doLogin()" value="Ingresar"/></td>
							      		</tr>
							      	<tr>
							        	<td class="ultimotabla">&nbsp;</td>
							      	</tr>
						    	</table>
							</td>
						</tr>
					</table>
					<p>&nbsp;</p>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>